package com.eos.control.action.activity;

import com.eos.business.service.SysActivityBusinessService;
import com.eos.control.action.base.AbstractBaseAction;
import com.eos.orm.mybatis.model.SalesModel;

public class EditBuyMethodAction extends AbstractBaseAction {
	private static final long serialVersionUID = -515632959142520914L;
    private Integer buyMethodId;
	private SalesModel saleModel;
	
    public void setBuyMethodId(Integer buyMethodId) {
		this.buyMethodId = buyMethodId;
	}
	
	public SalesModel getSaleModel() {
		return saleModel;
	}

	@Override
	public String execute() {
		try {
			SysActivityBusinessService sabs = new SysActivityBusinessService();
			saleModel = sabs.getSaleModelPrimaryKey(buyMethodId);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}
}
